/*
 * time.h
 *
 *  Created on: May 15, 2009
 *      Author: toc
 */

#include <iostream>

#ifndef TIME_H_
#define TIME_H_

class Time
{
public:
  Time();
  Time(double value);
  virtual ~Time();

  void operator =(Time new_p);
  void operator +=(Time new_p);
  void operator -=(Time new_p);
  bool operator ==(Time p);

  double value;

};

bool operator >(Time t1, Time t2);
bool operator <(Time t1, Time t2);
Time operator +(Time t1, Time t2);
Time operator -(Time t1, Time t2);

std::ostream& operator <<(std::ostream &os, const Time &time);

class Time_interval
{
public:
  Time_interval();
  Time_interval(Time start, Time end);
  virtual ~Time_interval();

  Time start;
  Time end;

  Time lenght(void);
};

#endif /* TIME_H_ */
